package ch05.test1;


import lombok.Data;

@Data
public class User {
    //定义talk属性，该属性值通过Soring配置文件注入
    private String talk;

    private String talk1;

    //打印方法
    public void print(){
        System.out.println("路飞:"+talk);
    }
    public void print1(){
        System.out.println("诸葛亮:"+talk1);
    }
}
